# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-yabause
pkgver=0_git20210411
pkgrel=0
_commit="4d85b6e793030c77ae6b64fd7c99041c935b54ac"
pkgdesc="Yabause/YabaSanshiro/Kronos ports to libretro"
url="https://github.com/libretro/yabause"
arch="x86 x86_64" # uses SSE compiler flags
license="GPL-2.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/yabause/archive/$_commit.tar.gz"
builddir="$srcdir/yabause-$_commit"
options="!check" # No tests

build() {
	make -C yabause/src/libretro
}

package() {
	install -Dm644 yabause/src/libretro/yabause_libretro.so \
		"$pkgdir"/usr/lib/libretro/yabause_libretro.so
}

sha512sums="c941322836b3239874209120e0df1618af875b54cb4ff7a874a4fbccfbb0f8e0fabc0829b2c1a982cfe906700c2e6bbe2cd6a65ac748218bbbe9b5b10d69763f  libretro-yabause-4d85b6e793030c77ae6b64fd7c99041c935b54ac.tar.gz"
